/*
 * frmAbout.java
 *
 * Created on April 28, 2010, 5:23 PM
 */
package GUI;

import java.awt.Toolkit;
import java.io.File;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author  Shinichi
 */
public class frmAbout extends javax.swing.JDialog {

    /** Creates new form frmAbout */
    public frmAbout(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
        
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jDesktopPane1 = new javax.swing.JDesktopPane();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        _btnok = new javax.swing.JButton();
        _btnsysteminformation = new javax.swing.JButton();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("AITSM - About");

        jDesktopPane1.setBackground(new java.awt.Color(255, 255, 255));

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/About.jpg"))); // NOI18N
        jLabel1.setBounds(10, 0, 410, 213);
        jDesktopPane1.add(jLabel1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel2.setText("Andrews Institute of technical sciences and Management is an educational university ,");
        jLabel2.setBounds(10, 220, 420, 14);
        jDesktopPane1.add(jLabel2, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel3.setText("It is established in the year 1976. Being the oldest university and one of the most ");
        jLabel3.setBounds(10, 240, 410, 14);
        jDesktopPane1.add(jLabel3, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel4.setText("famous universities in the territory, and is diversified into different technologies, more ");
        jLabel4.setBounds(10, 260, 420, 14);
        jDesktopPane1.add(jLabel4, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel5.setText("number of students, prefer to join in this university.");
        jLabel5.setBounds(10, 280, 260, 14);
        jDesktopPane1.add(jLabel5, javax.swing.JLayeredPane.DEFAULT_LAYER);

        _btnok.setText("OK");
        _btnok.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                _btnokActionPerformed(evt);
            }
        });
        _btnok.setBounds(190, 340, 80, 23);
        jDesktopPane1.add(_btnok, javax.swing.JLayeredPane.DEFAULT_LAYER);

        _btnsysteminformation.setText("System Information");
        _btnsysteminformation.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                _btnsysteminformationActionPerformed(evt);
            }
        });
        _btnsysteminformation.setBounds(280, 340, 130, 23);
        jDesktopPane1.add(_btnsysteminformation, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel6.setFont(new java.awt.Font("Tahoma", 0, 8));
        jLabel6.setText("AITSM");
        jLabel6.setBounds(10, 330, 34, 10);
        jDesktopPane1.add(jLabel6, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel7.setFont(new java.awt.Font("Tahoma", 0, 8));
        jLabel7.setText("Version 1.0 Ultimate.");
        jLabel7.setBounds(10, 340, 80, 10);
        jDesktopPane1.add(jLabel7, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel8.setFont(new java.awt.Font("Tahoma", 0, 8));
        jLabel8.setText("© Group 2 Bachkhoa-Aptech Corporation.");
        jLabel8.setBounds(10, 350, 150, 10);
        jDesktopPane1.add(jLabel8, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel9.setFont(new java.awt.Font("Tahoma", 0, 8));
        jLabel9.setText("All rights reserved");
        jLabel9.setBounds(10, 360, 130, 10);
        jDesktopPane1.add(jLabel9, javax.swing.JLayeredPane.DEFAULT_LAYER);

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jDesktopPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 434, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jDesktopPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void _btnokActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event__btnokActionPerformed
    this.dispose();
}//GEN-LAST:event__btnokActionPerformed

private void _btnsysteminformationActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event__btnsysteminformationActionPerformed
    try {
        Runtime.getRuntime().exec("rundll32.exe url.dll,FileProtocolHandler msinfo32.exe");
    } catch (IOException ex) {
        Logger.getLogger(frmAbout.class.getName()).log(Level.SEVERE, null, ex);
    }
}//GEN-LAST:event__btnsysteminformationActionPerformed

    /**
     * @param args the command line arguments
     */
//    public static void main(String args[]) {
//        java.awt.EventQueue.invokeLater(new Runnable() {
//
//            public void run() {
//                frmAbout dialog = new frmAbout(new javax.swing.JFrame(), true);
//                dialog.addWindowListener(new java.awt.event.WindowAdapter() {
//
//                    public void windowClosing(java.awt.event.WindowEvent e) {
//                        System.exit(0);
//                    }
//                });
//                dialog.setVisible(true);
//            }
//        });
//    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton _btnok;
    private javax.swing.JButton _btnsysteminformation;
    private javax.swing.JDesktopPane jDesktopPane1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    // End of variables declaration//GEN-END:variables
}
